package com.rinzin.controller;

import org.springframework.web.bind.annotation.*;

import javax.ws.rs.PathParam;

/**
 * @BelongsProject:microservice
 * @BelongsPackage:com.rinzin.controller
 * @Author:Rinzin
 * @CreateTime:2020-09-19-20-45
 * @Description:
 **/
@RestController
@RequestMapping("/user")
public class UserController {

    @GetMapping("/info")
    public String getUser(){
        return "[age:11,name:wurenzeng,sex:男]";
    }
    @PostMapping("/add")
    public String addUser(){
        return "add success";
    }
}
